package cn.sykj.car.service;

import cn.sykj.car.entity.Dictionary;
import cn.sykj.car.vo.DictionaryVO;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 字典表 服务类
 * </p>
 *
 * @author Yixu
 * @since 2018-12-06
 */
public interface IDictionaryService extends IService<Dictionary> {

    //新增字典表
    public Boolean addDictionary(Dictionary dictionary) throws Exception;

    //修改字典表
    public Boolean updateDictionary(Dictionary dictionary) throws Exception;

    //删除字典表
    public Boolean deleteDictionary(Integer id) throws Exception ;

    /**
     * 查看字典表
     * @param page
     * @param dictionary
     * @return
     * @throws Exception
     */
    public IPage<DictionaryVO> pageDictionary(IPage<DictionaryVO> page, Dictionary dictionary) throws Exception ;

    /**
     * 下拉
     * @param dictGroup
     * @return
     * @throws Exception
     */
    public List<Dictionary> getListByGroup(String dictGroup) throws Exception ;



}
